<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-lead"><em>多表格（Multitable）</em>用于展示在一个页面展示多个表格数据,并且每次切换时刷新</div>
        <ul class="nav nav-tabs">
            <li class="active"><a href="#first" data-toggle="tab">订单列表</a></li>
            <li><a href="#second" data-toggle="tab">订单发货</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="first">
                <div id="toolbar1" class="toolbar">
                    {:build_toolbar('refresh')}
                    <a href="javascript:;" class="btn {$ids ? 'hide':''} btn-success btn-add {:$auth->check('wx/wxorder/add')?'':'hide'}" title="{:__('订单添加')}" ><i class="fa fa-plus"></i> {:__('订单添加')}</a>
                    <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('wx/wxorder/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                    <a href="javascript:;" class="btn {$ids ? '':'hide'} btn-danger btn-import {:$auth->check('wx/wxorder/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i>订单 {:__('Import')}</a>
                    <a href="javascript:;" data-params="createtime=" class="btn {$ids ? '':'hide'} btn-info btn-finance btn-disabled disabled {:$auth->check('wx/wxorder/finance')?'':'hide'}" title="审核" ><i class="fa fa-bell-o fa-lg"></i> 财务审核</a>
<!--                    <a href="javascript:;"  class="btn btn-info btn-config {:$auth->check('wx/wxorder/config')?'':'hide'}" title="提分超市订单" ><i class="fa fa-cog"></i> 提分超市订单</a>-->
                    <a href="javascript:;"  class="btn {$ids ? '':'hide'}  btn-primary btn-become btn-disabled disabled {:$auth->check('wx/wxorder/become')?'':'hide'}" title="申请作废" ><i class="fa fa-scissors"></i> 申请作废</a>
                    <a href="javascript:;"  class="btn {$ids ? '':'hide'}  btn-primary btn-becomes btn-disabled disabled {:$auth->check('wx/wxorder/becomes')?'':'hide'}" title="订单作废" ><i class="fa fa-scissors"></i> 订单作废</a>
                    <a href="javascript:;" class=" {$ids ? '':'hide'} btn btn-default" style="font-size:14px;color:dodgerblue;">
                        <i class="fa fa-dollar"></i>
                        <span class="extend">
                                合计码洋：<span id="money">0</span>
<!--                                单价：<span id="price">0</span>-->
                            </span>
                    </a>
                </div>
                <table id="table1" class="table table-striped table-bordered table-hover" width="100%"
                       data-operate-del="{:$auth->check('wx/wxorder/del')}"
                       data-operate-edit="{:$auth->check('wx/wximportlog/edit')}"
                       data-operate-detail="{:$auth->check('wx/wximportlog/detail')}"
                >
                </table>
            </div>
            <div class="tab-pane fade" id="second">
                <div id="toolbar2" class="toolbar">
                    {:build_toolbar('refresh')}
                    <!--a href="javascript:;" class="btn btn-info btn-importwl {:$auth->check('wx/wxorder/importwl')?'':'hide'}" title="{:__('Import')}" id="btn-importwl" data-url="ajax/upload" data-mimetype="xls,xlsx" data-multiple="false">
                        <i class="fa fa-upload"></i> {:__('上册快递单号导入')}
                    </a-->
                    <a href="javascript:;" class="btn btn-info btn-importwlx {:$auth->check('wx/wxorder/importwlx')?'':'hide'}" title="{:__('Import')}" id="btn-importwlx" data-url="ajax/upload" data-mimetype="xls,xlsx" data-multiple="false">
                        <i class="fa fa-upload"></i> {:__('快递单号导入')}
                    </a>
<!--                    <a href="javascript:;" class="btn btn-success btn-msg btn-disabled disabled {:$auth->check('wx/wxorder/send')?'':'hide'}" title="{:__('Send')}" data-area='["50%", "80%"]'><i class="fa fa-paper-plane"></i> 短信发送</a>-->
                </div>
                <table id="table2" class="table table-striped table-bordered table-hover" width="100%">
                </table>
            </div>
        </div>
    </div>
</div>
<script>
    var ids = '{$ids}';
    var stateList = {$stateList|json_encode};
</script>